<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>第三事业部订餐系统</title>
    <meta name="description" content="Flat UI Kit Free is a Twitter Bootstrap Framework design and Theme, this responsive framework includes a PSD and HTML version."/>

    <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">

    <!-- Loading Bootstrap -->
    <link href="/dinner/Public/index/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="/dinner/Public/index/css/flat-ui.css" rel="stylesheet">
<!--     <link href="/dinner/Public/index/css/demo.css" rel="stylesheet"> -->

    <link rel="shortcut icon" href="/dinner/Public/index/images/icons/png/meal.png">

    <style type="text/css">
      body {
        padding-top: 70px;
      }
      </style>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <form class="form-signin" role="form" action="<?php echo U('Index/bookHandle');?>" method='post' id="form">
        <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">点餐系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>
            <?php if(is_array($nav)): foreach($nav as $key=>$nav): if($nav["id"] == $typeId ): ?><li class="active"><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li>
              <?php else: ?>
                <li><a href="<?php echo U('Index/order');?>?id=<?php echo ($nav["id"]); ?>"><?php echo ($nav["name"]); ?></a></li><?php endif; endforeach; endif; ?>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo U('Index/about');?>">关于</a></li>
            <li><a href="<?php echo U('Index/check');?>">所有人的订单</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php echo ($userName); ?>'s 个人中心<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo U('Index/history');?>">历史记录</a></li>
                <li><a href="<?php echo U('Index/myorder');?>">我的订单</a></li>
<!--                 <li><a href="#">Something else here</a></li> -->
                <li role="separator" class="divider"></li>
<!--                 <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li> -->
                <li><a href="<?php echo U('Login/logoutHandle');?>">退出登录</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron" style="padding:12px;text-align:center;margin:0px;">
        <h5><?php echo ($meal["name"]); ?></5>
        <p style="font-size:16px;">(<?php echo ($meal["mark"]); ?>)</p>
<!--         <p>To see the difference between static and fixed top navbars, just scroll.</p> -->
<!--         <p>
          <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs &raquo;</a>
        </p> -->
      </div>

    </div> <!-- /container -->
    <div class="container">
      <div class="row">

        <?php if(is_array($meal["menu"])): foreach($meal["menu"] as $key=>$value): ?><div class="col-md-3" style="margin-top:20px;">
          <div class="tile">
            <img src="/dinner/Public/<?php echo ($value["image"]); ?>" alt="Compas" class="tile-image big-illustration img-rounded" style="width:100%;height:200px;" >
            <h3 class="tile-title" style="margin-bottom:10px;"><?php echo ($value["name"]); ?><font color="red">(<?php echo ($value["price"]); ?>元)</font></h3>
            <a class="btn btn-primary btn-large btn-block" href="<?php echo U('Index/orderHandle');?>?id=<?php echo ($value["id"]); ?>">点一个</a>
          </div>
        </div><?php endforeach; endif; ?>

        </div>
      </div>
    </div>
    </form>
    
    <!-- Load JS here for greater good =============================-->
    <script src="/dinner/Public/index/js/jquery-1.8.3.min.js"></script>
    <script src="/dinner/Public/index/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="/dinner/Public/index/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap.min.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-select.js"></script>
    <script src="/dinner/Public/index/js/bootstrap-switch.js"></script>
    <script src="/dinner/Public/index/js/flatui-checkbox.js"></script>
    <script src="/dinner/Public/index/js/flatui-radio.js"></script>
    <script src="/dinner/Public/index/js/jquery.tagsinput.js"></script>
    <script src="/dinner/Public/index/js/jquery.placeholder.js"></script>
    <script src="/dinner/Public/index/js/jquery.stacktable.js"></script>
    <script src="http://vjs.zencdn.net/4.3/video.js"></script>
    <script src="/dinner/Public/index/js/application.js"></script>
  </body>
</html>